
Initiate a state change on a forest, such as a merge, restart, or attach.
| Request Headers | |
|---|---|
| Content-Type | The MIME type of the data in the request
body. The only supported value is application/x-www-form-urlencoded.
|
Upon successful completion, MarkLogic Server returns status code 200 (ok) or 202 (Accepted).
manage-admin role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
Note: The properties described here are for XML payloads. In general they are the same
for JSON, with the exception that, in JSON, failover-hosts and
forest-replicas are expressed in singular form. For example, in JSON,
failover-hosts is instead failover-host and the format is:
"failover-host":["hostname"].
databaseforest-nameenabledhostdata-directorylarge-data-directoryfast-data-directoryfast-data-max-sizeupdates-allowedavailabilityrebalancer-enablerangeThis is a complex structure with the following children:
lower-boundupper-boundpartition-numberfailover-enablefailover-hostsThis is a complex structure with the following children:
failover-hostforest-backupsThis is a complex structure with the following children:
forest-backupThis is a complex structure with the following children:
backup-idbackup-enabledbackup-directorybackup-typebackup-periodbackup-month-daybackup-daysThis is a complex structure with the following children:
backup-daybackup-start-datebackup-start-timebackup-timestampforest-replicasThis is a complex structure with the following children:
forest-replicaThis is a complex structure with the following children:
hostreplica-namedata-directorylarge-data-directoryfast-data-directorydatabase-replicationThis is a complex structure with the following children:
foreign-replicasThis is a complex structure with the following children:
foreign-replicaThis is a complex structure with the following children:
foreign-cluster-nameforeign-database-nameforeign-forest-nameforeign-masterThis is a complex structure with the following children:
foreign-cluster-nameforeign-database-nameforeign-forest-name
$ curl --anyauth --user user:password -X POST -i \
-d "state=attach" -d "database=Documents" \
-H "Content-type: application/x-www-form-urlencoded" \
http://localhost:8002/manage/v2/forests/example
==> The forest named example is attached to the Documents database.
MarkLogic Server responds with headers similar to the following:
HTTP/1.1 200 OK
Content-type: application/xml
Cache-Control: no-cache
Expires: -1
Server: MarkLogic
Content-Length: 0
Connection: Keep-Alive
Keep-Alive: timeout=5